package com.example.plat.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.plat.enity.Activity;
import com.example.plat.enity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    //发布的活动
    List<Activity> findMyActivity(Long userId);

    //参与的活动
    List<Activity> findJoinActivity(Long userId);
}
